<!--  -->
<template>
  <div>
   {{ company.id? '修改机构' : '添加机构'}}
  </div>
</template>

<script lang='ts' setup>
import { reactive,toRefs,ref,onMounted} from 'vue'
import { useRoute } from 'vue-router';
import { Company } from '../../apis/company/type';
const route = useRoute();

const company=ref<Company>({
  id:route.params.id ? Number(route.params.id) :0,
  name:""
})

console.log(company.value.id);

</script>
<style scoped>
</style>